package com.skyable.account.controller;

import com.skyable.common.common.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author GaoYuan
 * @title: OauthController
 * @projectName spring-cloud-oauth2-demo
 * @description: TODO
 * @date 2021/4/1211:03
 */
@ApiIgnore
@RestController
@RequestMapping("oauth")
public class OauthController {

    /**
     * 登录回调方法
     * @param request
     */
    @GetMapping("/code")
    public ResponseResult code(HttpServletRequest request){
        Map<String, String[]> parameterMap = request.getParameterMap();
        return ResponseResult.success(parameterMap);
    }

}
